package edu.kjxy.day01.runMethodUseStopMethod;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/1/31 20:59
 */
public class MyThread extends Thread {
    @Override
    public void run() {
        try {
            this.stop();
        }catch (ThreadDeath e){
            System.out.println("进入了catch()方法");
            e.printStackTrace();
        }
    }
}
